package dongshi.daddy.main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ProviderWithTokenMain {
    public static void main(String[] args) throws Exception {
        /*
        dubbo://192.168.10.119:20827/dongshi.daddy.service.MyProviderTokenService?anyhost=true&application=dongshidaddy-provider&bean.name=dongshi.daddy.service.MyProviderTokenService&dubbo=2.0.2&generic=false&interface=dongshi.daddy.service.MyProviderTokenService&methods=sayHi&owner=dongshidaddy&pid=17848&side=provider&timestamp=1638325411607&token=12345678
         */
        //加载xml配置文件启动
        ClassPathXmlApplicationContext context
                = new ClassPathXmlApplicationContext("META-INF/spring/provider-with-token.xml");
        context.start();
        System.in.read(); // 按任意键退出
    }

}
